/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package actor.weapons;

import Actor.Actor;

/**
 *
 * @author Eric-Standard
 */
public class RPG extends Weapon {

    public RPG(Actor owner) {
        super(owner);
        this.ammo = 1;
        this.clipSize = 1;
        this.totalAmmo = 5;
        this.maxAmmo = 5;
    }

    @Override
    public boolean fire() {
        if (!super.fire()) {
            if (ammo == 0) {
                reload();
            }
            return false;
        }
        Rocket r = new Rocket(owner);
        world.add(r);
        return true;
    }
}
